/*
 * author      : 吴中勤 
 * date        : 2018/8/17
 * description : TODO
 */

package com.deepexi.adapter.sdk.sap.dto;

import com.deepexi.adapter.common.BaseDto;
import com.deepexi.adapter.sdk.sap.SapBizConst;
import com.google.gson.annotations.SerializedName;

public class SapBaseResponse extends BaseDto {

    // MESSAGE 消息
    @SerializedName("MESSAGE")
    protected String msg;

    // SUBRC 成功失败标识
    @SerializedName("SUBRC")
    protected String code;


    public boolean isOk() {
        return SapBizConst.RESPONSE_SUBRC_OK.equals(code);
    }
    // === setter & getter ===

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
